:root {
  /* TODO  relate this to docusarus css vars (which are hex values) */
  --aa-primary-color-rgb: var(--aa-text-color-rgb);
  --aa-footer-height: 3.5rem;
}

.aa-DetachedSearchButton {
  /* shadow and gradient are taken from docsearch */
  --key-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, 0 1px 2px 1px rgba(30, 35, 90, 0.4);
  --key-gradient: linear-gradient(-225deg, #d5dbe4, #f8f8f8);
  border-radius: 9999px;
  height: 36px;
  background: var(--ifm-color-emphasis-200);
  border: none;
  color: initial;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
}

.aa-DetachedSearchButton kbd {
  align-items: center;
  background: var(--key-gradient);
  border-radius: 2px;
  box-shadow: var(--key-shadow);
  display: flex;
  height: 18px;
  justify-content: center;
  padding: 0 0 1px;
  border: 0;
  width: 20px;
}

.aa-DetachedSearchButton kbd:last-child {
  margin-right: 0.5em;
}

.aa-DetachedSearchButton .aa-DetachedSearchButtonPlaceholder,
.aa-DetachedSearchButton .aa-DetachedSearchButtonQuery {
  flex: 1;
  white-space: nowrap;
}

/* shadow and gradient are taken from docsearch */
[data-theme='dark'] .aa-DetachedSearchButton {
  --key-shadow: inset 0 -2px 0 0 #282d55, inset 0 0 1px 1px #51577d, 0 2px 2px 0 rgba(3, 4, 9, 0.3);
  --key-gradient: linear-gradient(-26.5deg, #565872, #31355b);
}

.navbar .aa-DetachedSearchButton {
  width: 200px;
  height: 36px;
}

.aa-DetachedSearchButtonIcon {
  color: inherit;
  width: unset;
}

.aa-DetachedContainer .aa-PanelLayout {
  bottom: var(--aa-footer-height);
}

.aa-NoResults {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-size: 0.9em;
  color: var(--ifm-color-emphasis-600);
}

.aa-ItemLink {
  margin-bottom: .6rem;
  text-decoration: none !important;
  color: rgba(var(--aa-primary-color-rgb), 1) !important;
  padding: calc(var(--aa-spacing-half)/1.2);
}

.aa-ItemContentHighlight {
  color: rgba(var(--aa-primary-color-rgb), 1);
  font-weight: bold;
}